package com.example.demo.thread;

/**
 * @Description:
 * @Author: xiatian
 * @CreateTime: 2021/7/23
 * @Company: kangxu
 */
public class SynchronizedDemo {
    public void method(){
        synchronized(this){
            System.out.println("我是一个同步代码块");
        }
    }
}
